package com.kxn.multi.module.common.constant;

/**
 * 正则表达式配置
 *
 */
public class RegExpConstant {


    //逗号隔开数字正则表达式
    public static final String MULTI_IDS_REGEX = "^\\d+(,\\d+)*$";

    //逗号隔开版本号正则表达式
    public  static final String VERSION_REGEX="^$|([1-9]\\d?(\\.(0|[1-9]\\d?)){2}(,[1-9]\\d?(\\.(0|[1-9]\\d?)){2})?)";

    //手机号码
//    public static final String PHONE_REGEX = "^1\\d{10}$";
    public static final String PHONE_REGEX = "^(?:(?:\\+|00)86)?1(?:(?:3[\\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\\d])|(?:9[189]))\\d{8}$";

    //url正则
    public static final  String URL_REGEX = "^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]";
}
